/*
 * $Id
 */

#include <xp/bas/unxapi.h>
#include <xp/bas/errno.h>

xp_uid_t xp_getuid (void)
{
	return getuid ();
}

xp_uid_t xp_geteuid (void)
{
	return geteuid ();
}

xp_gid_t xp_getgid (void)
{
	return getgid ();
}

xp_gid_t xp_getegid (void)
{
	return getegid ();
}


xp_pid_t xp_getpid (void)
{
	return getpid ();
}

xp_pid_t xp_getppid (void)
{
	return getppid ();
}

xp_pid_t xp_setsid (void)
{
	return setsid ();
}

xp_pid_t xp_getpgid (xp_pid_t pid)
{
	return getpgid (pid);
}

int xp_setpgid (xp_pid_t pid, xp_pid_t pgid)
{
	return setpgid (pid, pgid);
}

int xp_setpgrp (void)
{
	/*return setpgrp ();*/
	return xp_setpgid (0, 0);
}

xp_pid_t xp_getpgrp (void)
{
	return xp_getpgid (0);
}

xp_pid_t xp_fork (void)
{
	return fork ();
}

xp_pid_t xp_wait (xp_pid_t pid, int *status, int options)
{
	return waitpid (pid, status, options);
}

int xp_pipe (int pfd[2])
{
	return pipe (pfd);
}
